package com.wy.client;

import com.wy.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Author: wy
 * @Date:2019/11/1 19:10
 */
 @Component
public class UserClientRollBack implements  UserClient {
    @Override
    public User getUserById(Long id) {
          User user=new User();
          user.setName("访问异常!");
          user.setId(id);
        return user;
    }
}
